package cn.gson.crmdemo.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;

import cn.gson.crmdemo.model.dao.SalesLogDao;
import cn.gson.crmdemo.model.mapper.RizhiMapper;
import cn.gson.crmdemo.model.pojo.Saleslog;
import cn.gson.crmdemo.model.vo.SaleslogVo;

@Service
@Transactional(rollbackFor=Exception.class)
public class TableService {
	@Autowired
	SalesLogDao sldao;
	@Autowired
	RizhiMapper slmapper;
	/**
	 * 查询日志
	 * @return
	 */
	public JSONArray adclong() {
		return slmapper.rizhi();
	}
	public void shanchu(Integer i) {
		sldao.deleteById(i);
	}
}

